import { fetchGet, fetchPost, fetchDel, fetchGetDown,fetchPostUp } from "@/axios";
const employeeConfirm = {
  //   查询所有转正人员
  getEmployeeConfirmList() {
    return fetchGet(`/api/empentformInfo/select`);
  },
  // 分页查询转正表格数据请求
  getEmployeeConfirm(page, pageSize,params) {
    return fetchPost(
      `/api/empentformInfo/page?page=${page}&pageSize=${pageSize}`,params
    );
  },
  // 修改转正人员信息
  editEmployeeConfirm(employee) {
    // return fetchPost(`/api/empEntFormInfo/update`, employee);
    return fetchPost(`/api/empentformInfo/updates`, employee);
  },
  //转正文件上传
  uploadEmployeeConfirm(excelFile) {
    return fetchPostUp(`/api/empentformInfo/read`, excelFile);
  },
  //删除转正员工，使其离职
  deleteEmployeeConfirm(empId) {
    return fetchDel(`/api/LZempEntFormInfo/delete?empId=${empId}`);
  },
  //转正分页数据下载
  downEmployeeConfirmList(page, pageSize) {
    return fetchGetDown(
      `/api/empentformInfo/write?page=${page}&pageSize=${pageSize}`
    );
  },
  //转正查询全部文件下载
  downEmployeeConfirmListAll() {
    return fetchGetDown(`/api/empentformInfo/writes`);
  },
};
export default employeeConfirm;
